<?php


namespace App\HttpController\Mp1;


use App\Bizs\Mp1\QiniuBiz;
use Base\BaseController;

class Qiniu extends BaseController
{
    /**
     * @Apiname 获取七牛云上传token
     *
     * @Param bucket {"type": "string", "default": "pet-xtzero-me", "desc": "存储桶"}
     * @throws
     */
    public function getToken()
    {
        $this->returnJson((new QiniuBiz())->getToken($this->params));
    }
}
